# 记录生肖，根据年份来判断生肖

chinese_zodiac = '猴鸡狗猪鼠牛虎兔龙蛇马羊'

# 切片操作符 :
print(chinese_zodiac[0])

print(chinese_zodiac[0:4])

print(chinese_zodiac[-1])

year = 2021
print(year % 12)

print(chinese_zodiac[year % 12])

# 成员关系操作符 in  not in
print('狗' in chinese_zodiac)
print('狗' not in chinese_zodiac)

# 连接操作符
print(chinese_zodiac + chinese_zodiac)
print(chinese_zodiac + 'abcd')

# 重复操作符
print(chinese_zodiac * 3)
